﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;

namespace Server
{
    /// <summary>
    /// There are no comments for InheritanceTypeConnection in the schema.
    /// </summary>
    public class InheritanceTypeContext : global::System.Data.Objects.ObjectContext
    {
        /// <summary>
        /// Initializes a new InheritanceTypeConnection object using the connection string found in the 'InheritanceTypeConnection' section of the application configuration file.
        /// </summary>
        public InheritanceTypeContext() :
            base("name=InheritanceTypeConnection", "InheritanceTypeConnection")
        {
        }
        /// <summary>
        /// Initialize a new InheritanceTypeConnection object.
        /// </summary>
        public InheritanceTypeContext(string connectionString) :
            base(connectionString, "InheritanceTypeConnection")
        {
        }
        /// <summary>
        /// Initialize a new InheritanceTypeConnection object.
        /// </summary>
        public InheritanceTypeContext(global::System.Data.EntityClient.EntityConnection connection) :
            base(connection, "InheritanceTypeConnection")
        {
        }
        /// <summary>
        /// There are no comments for Person in the schema.
        /// </summary>
        [global::System.ComponentModel.BrowsableAttribute(false)]
        public global::System.Data.Objects.ObjectQuery<Person> Person
        {
            get
            {
                if ((this._Person == null))
                {
                    this._Person = base.CreateQuery<Person>("[Person]");
                }
                return this._Person;
            }
        }
        private global::System.Data.Objects.ObjectQuery<Person> _Person;
        /// <summary>
        /// There are no comments for Person in the schema.
        /// </summary>
        public void AddToPerson(Person person)
        {
            base.AddObject("Person", person);
        }
    }
}
